Support top-level-await in TypeScript#3024
Conversation
6221531 to
5b20b83
Compare
|
TLA for TypeScript is scheduled for 3.7, planned for Nov 7th. Refs: microsoft/TypeScript#33352 and microsoft/TypeScript#25988 |
piscisaureus
left a comment
There was a problem hiding this comment.
I am expecting many subtle bugs in our top level await support.
E.g. certain type checks that typescript will get wrong, module initialization in the wrong order / racy, etc.
I wouldn't be surprised either - but some preliminary checks I did with TLA + type errors did report the correct error. But this is just a bandaid until TypeScript properly parses TLA. |
|
Is top level for-await a distinct typescript/V8 issue? |
|
@hayd yes - it’s not yet supported in v8 |
Fixes #471
After this we should clean up the documentation...